package model

type User struct {
	// 如果required字段没有收到，错误日志会告知：
	// Error:Field validation for 'User' failed on the 'required' tag
	/*
		binding:"required,gt=10" => 代表该值需要大于10
		time_format:"2006-01-02" time_utc:"1" => 时间格式
		还允许**自定义校验方式：**gopkg.in/go-playground/validator.v8，待完善
	*/
	ID   int32  `json:"id" form:"id" binding:"required"`
	Age  int32  `json:"age" form:"age"`
	Name string `json:"Name" form:"Name"`
}
